package cn.hinglo.gameclaw.client.action;

import cn.hinglo.gameclaw.client.service.BannerClientService;
import cn.hinglo.gameclaw.data.controller.BaseController;
import cn.hinglo.gameclaw.data.entity.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @createTime: 2018/1/8
 * @author: HingLo
 * @description: App端banner图展示
 */
@RestController
@RequestMapping("client/bc/")
public class BannerClientAction extends BaseController {

    private final BannerClientService bannerClientService;

    @Autowired
    public BannerClientAction(BannerClientService bannerClientService) {
        this.bannerClientService = bannerClientService;
    }

    /**
     * 查找全部的Banner图，
     *
     * @return 操作结果
     */
    @GetMapping("list")
    public Result listMenuClient() {
        return success(bannerClientService.listBannerClientService());
    }
}
